﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;
using ListaTelefonicaMEM.Controles;

namespace ListaTelefonicaMEM.Controles
{
    public class LabelPadraoProcesso : LabelPadrao
    {
        private LabelPadrao lbValor;
        private LabelPadrao lbDivisor;
        private LabelPadrao lbMaximo;
        private LabelPadrao lbTipo;

        public LabelPadraoBarra LinkedLabel { get; set; }
        public int Valor { get; set; }
        public int Minimo { get; set; }
        public int Maximo { get; set; }
    
        protected override void OnCreateControl()
        {
            base.OnCreateControl();
            this.Font = new Font(Config.NomeFonte, Config.TamanhoFonte);
            this.Anchor = (AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right);
            this.AutoSize = false;


            this.Minimo = 0;
            this.Maximo = 100;
            this.Valor = this.Minimo;


        }

        protected override void OnTextChanged(EventArgs e)
        {
            base.OnTextChanged(e);
            if (LinkedLabel != null)
            {
                
   
            }
        }

        private void InitializeComponent()
        {
            this.lbTipo = new LabelPadrao();
            this.lbValor = new LabelPadrao();
            this.lbDivisor = new LabelPadrao();
            this.lbMaximo = new LabelPadrao();
            this.SuspendLayout();
            // 
            // lbTipo
            // 
            this.lbTipo.AutoSize = true;
            this.lbTipo.Location = new System.Drawing.Point(0, 0);
            this.lbTipo.Name = "lbTipo";
            this.lbTipo.Size = new System.Drawing.Size(100, 23);
            this.lbTipo.TabIndex = 0;
            this.lbTipo.Text = "Tipo:";
            // 
            // lbValor
            // 
            this.lbValor.AutoSize = true;
            this.lbValor.Location = new System.Drawing.Point(0, 25);
            this.lbValor.Name = "lbValor";
            this.lbValor.Size = new System.Drawing.Size(100, 23);
            this.lbValor.TabIndex = 0;
            this.lbValor.Text = "Valor";
            // 
            // lbDivisor
            // 
            this.lbDivisor.AutoSize = true;
            this.lbDivisor.Location = new System.Drawing.Point(0, 50);
            this.lbDivisor.Name = "lbDivisor";
            this.lbDivisor.Size = new System.Drawing.Size(100, 23);
            this.lbDivisor.TabIndex = 0;
            this.lbDivisor.Text = "/";
            // 
            // lbMaximo
            // 
            this.lbMaximo.AutoSize = true;
            this.lbMaximo.Location = new System.Drawing.Point(0, 75);
            this.lbMaximo.Name = "lbMaximo";
            this.lbMaximo.Size = new System.Drawing.Size(100, 23);
            this.lbMaximo.TabIndex = 0;
            this.lbMaximo.Text = "Maximo";
            this.ResumeLayout(false);

        }

    }
}
